<?php if(count($games) <=0) return ''; ?>
<div class="title_main_cate">
<h1><a href="<?php echo category_url($cate->cat_code); ?>" class="box-title" title="Game <?php echo $cate->seo_title; ?>">Game <?php echo $cate->cat_name; ?></a></h1>
<div class="desc_cate">
	<p><?php echo $cate->cat_description; ?></p>
</div>
</div>
<?php load_widgets('mid'); ?> 

<div class="cls"></div>    
<div class="block_cate_game">      
<div class="box_item">
	<ul>
	<?php
	if ($games) foreach ($games as $index => $game) { ?>
		<?php $this->load->view('frontend/box/game', array('game'=> $game)); ?>
		<?php 
			}
		?>
	</ul>
</div>   
</div>   

<?php return '';?>
<div class="block_cate_game">
<div class="icon1">
<img src="imgs/icon1_.png" width="34" height="39" alt="<?php echo $cate->cat_name; ?>"> </div>
<div class="title">
	<h2><a class="box-title" href="<?php echo category_url($cate->cat_code); ?>" title="<?php echo @$prefix; ?><?php echo $cate->cat_name; ?>">
	<?php echo @$prefix; ?><?php echo $cate->cat_name; ?>
	</a></h2>
</div>  

<div class="cls"></div>     
<?php load_widgets('mid'); ?> 
<div class="cls"></div>          
<div class="box_item">
	<ul>
	<?php
	if ($games) foreach ($games as $index => $game) { ?>
		<?php $this->load->view('frontend/box/game', array('game'=> $game)); ?>
		<?php 
			}
		?>
	</ul>
</div>   
</div>